<?php
defined('_JEXEC') or die;

// disable core styles to avoid bs conflict
OC_Util::$core_styles = array();

?>

<?php foreach ($_['questions'] as $k => $v):?>
<?php
if (!is_int($k))
   continue;
$op_label = array('A','B','C','D','E','F','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
?>
   <div class="test_questionbox">
      <h6><?=$k+1?>.<?=$v->question?><span class="red">（得分：<?=$v->user_score?>）</span><span style="font-weight:normal;"><?php echo $v->user_answer <= 0 ? '求职者未作答' : '' ?></span></h6>
      <div class="test_question_select normal">
         <?php $v->answer = json_decode($v->answer);?>
         <?php foreach ($v->answer as $key => $choice):?>
         <label class="radio">
            <? echo $choice->answer == 1 ? '<i class="trueimg"></i>' : ""?>
            <? if ($v->user_score == 0 && $v->user_answer == $key+1) :?>
               <i class="faileimg"></i>
            <? endif;?>
            <?=$op_label[$key]?>. <?php echo htmlspecialchars($choice->choice);?>
         </label>
         <?php endforeach;?>
      </div>
   </div>
<?php endforeach;?>